php forum
php mysql forum
php mysql smarty
 
Topic Options
#246004 - 05/12/03 05:56 PM Finished-[6.2-6.3] Upload Avatar 1.0.3
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Mod Name / Version: Upload Avatar 1.0.3 <br /> <br />Description: Allows an administrator to upload a user's avatar. <br /> <br />Working Under: UBB.Threads 6.2-6.3 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: PHP >= 4.0.5 <br /> <br />Author(s): Dave_L <br /> <br />Date: 05/30/03 <br /> <br />Credits: <br /> <br />Files Altered: admin/menu.php (optional) <br /> <br />New Files: admin/upload_avatar.php <br /> <br />Database Altered: yes (updates Users.U_Picture, Users.U_PicWidth and Users.U_PicHeight) <br /> <br />Info/Instructions: This addon script allows an administrator to upload an avatar for a user, regardless of whether users are permitted to upload their own avatars. The database is updated appropriately. <br /> <br />The avatar directory path, URL and the maximum avatar file size are obtained from the config settings $config['avatars'], $config['avatarurl'] and $config['avatarsize']. <br /> <br />The maximum avatar dimensions are obtained from the theme settings $theme['PictureWidth'] and $theme['PictureHeight']. <br /> <br />The permissible avatar file types (.gif, .jpg and .png) are hardcoded here. <br /> <br />The PHP function getimagesize is used for checking the image dimensions and image type. <br /> <br />------------ <br />The instructions show how to add this function to the admin menu, but you can also run this as a standalone script, if you prefer not to modify admin/menu.php. <br />------------ <br /> <br />HISTORY: <br /> 2003-03-01 Dave_L - 1.0.0 Original release <br /> 2003-04-21 Dave_L - 1.0.1 Updated instructions for UBB.threads 6.3b1 <br /> 2003-05-12 Dave_L - 1.0.2 chmod uploaded file to 0666 <br /> 2003-05-30 Dave_L - 1.0.3 Record actions in admin log <br /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
79896-upload_avatar_1-0-3.zip (61 downloads)



Edited by Dave_L (05/30/03 02:24 AM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246005 - 05/12/03 06:00 PM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thansk Dave. <img src="/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246006 - 05/12/03 10:16 PM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes, thanks, very handy <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#246007 - 05/18/03 01:07 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: SurfMinister]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
This fix the distortion problem? Thanks I got a previous version working and love it.

Top
#246008 - 05/18/03 07:25 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: Kelly]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
If a user edits his profile, the avatar dimensions get reset to the theme defaults. That's a bug in changebasic.php that is unrelated to this hack.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246009 - 05/30/03 04:46 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Updated to version 1.0.3 - Record actions in admin log.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246010 - 05/30/03 05:10 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: joeuser]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Thx, Dave! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#246011 - 05/31/03 11:57 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: -Fusion-]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Cheers Dave - very handy <img src="/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks